package com.ninthgroup.service;

import com.ninthgroup.entity.Scheduling;
import com.ninthgroup.vo.Result;

import java.util.Date;

/**
 * @author ：1452863884@qq.com rcg
 * @date ：Created in 2022/10/20 15:50
 * @description：排班管理的接口
 * @modified By：
 * @version: 1.0
 */
public interface SchedulingService {


    /**
     * @param
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:c查询排班表里面的所有医生
     * @create time: 2022/10/20 16:04
     */
    Result selectAll();


    /**
     * @param sDid
     * @return com.ninthgroup.vo.Result
     * @create by: 1452863884@qq.com rcg
     * @description:根据医生查询状态
     * @create time: 2022/10/21 8:54
     */
    Result findOne(Integer sDid);


    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:
     * @create time: 2022/11/4 15:27
     * @param scheduling
     * @return com.ninthgroup.vo.Result
     */
    Result updateScheduling(Scheduling scheduling);

    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:新增排班信息
     * @create time: 2022/11/4 15:28
     * @param scheduling
     * @return com.ninthgroup.vo.Result
     */
    Result add(Scheduling scheduling);

    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:查询当前医生的排班信息
     * @create time: 2022/11/4 15:28
     * @param sDid
     * @return com.ninthgroup.vo.Result
     */
    Result selectOne(Integer sDid);


    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:预约支付成功后给排班里面的医生可预约数量减1
     * @create time: 2022/11/4 15:28
     * @param scheduling
     * @return com.ninthgroup.vo.Result
     */
    Result lessNum(Scheduling scheduling);

}
